#pragma once
#include <iostream>
#include "cocos2d.h"

using namespace cocos2d;

class CardSprite : public Sprite
{
	CardSprite();
	~CardSprite();

	int cardID;
	int cardKeys[5];
    std::string cardImage;
	static CardSprite* thisSprite;
	static Sprite* cardBack;
	void setCardImage();
    Label* m_pTestLabel = nullptr;
	
    virtual bool init() override;
    
public:
    CREATE_FUNC(CardSprite);
	void changeCard();

	static void nextCard();
	static bool checkKeys(const int* keys);
	static bool crossCard;
	static void disposeSprite();

    static void setPublicCard(CardSprite* pCardSprite) {thisSprite = pCardSprite;};
};

